"""DomainTrade URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin

from trade import views

urlpatterns = [
  #admin url
  # url(r'^admin/', admin.site.urls),
  url(r'^admin/$', views.admin),
  url(r'^admin/reinfo$', views.admin_reinfo),
  url(r'^admin/domainUpdate$', views.admin_domain_update),
  url(r'^admin/addDomain$', views.admin_addDomain),
  url(r'^admin/modify$', views.admin_modifyDomain),
  url(r'^admin/delete$', views.admin_delDomain),
  url(r'^admin/registered-list$', views.admin_registered_list),
  url(r'^admin/addBase$', views.admin_addBase),
  url(r'^admin/registered-info$', views.admin_registered_info),
  url(r'^admin/delRegistered$', views.admin_delRegistered),
  url(r'^admin/endRegistered$', views.admin_endRegistered),
  url(r'^admin/reserve-list$', views.admin_reserve_list),
  #url
  url(r'^$', views.index),
  url(r'^signin$', views.signin),
  url(r'^repasswd$', views.forgetPasswd),
  url(r'^signup$', views.signup),
  url(r'^check_code.html$', views.check_code),
  url(r'^index$', views.index),
  url(r'^signout$', views.signout),
  url(r'^send_email$', views.sendEmail),
  url(r'^record$', views.record),
  url(r'^modify_userinfo$', views.modify_user_info),
  url(r'^detail-(?P<nid>\d+).html$', views.domain_detail_info),
  url(r'^registered$', views.domain_registered),
  url(r'^reserve$', views.domain_reserve),
  url(r'^search$', views.search),
  url(r'^payNotify', views.payNotify),
  url(r'^payReturn', views.payReturn),
]
